<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:71:"D:\php\htdocs\tpshop\public/../application/admin\view\goods\create.html";i:1620021686;s:55:"D:\php\htdocs\tpshop\application\admin\view\layout.html";i:1619597967;}*/ ?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>后台管理系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link href="/static/admin/css/main.css" rel="stylesheet" type="text/css" />
    <link href="/static/admin/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="/static/admin/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css" />
    <script src="/static/admin/js/jquery-1.8.1.min.js"></script>
    <script src="/static/admin/js/bootstrap.min.js"></script>
</head>

<body>
    <!-- 上 -->
    <div class="navbar">
        <div class="navbar-inner">
            <div class="container-fluid">
                <ul class="nav pull-right">
                    <li id="fat-menu" class="dropdown">
                        <a href="#" id="drop3" role="button" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="icon-user icon-white"></i><?php echo \think\Session::get('manager_info.username'); ?>
                            <i class="icon-caret-down"></i>
                        </a>
                        <ul class="dropdown-menu">
                            <li><a tabindex="-1" href="javascript:void(0);">修改密码</a></li>
                            <li class="divider"></li>
                            <li><a tabindex="-1" href="<?php echo url('admin/login/out'); ?>">安全退出</a></li>
                        </ul>
                    </li>
                </ul>
                <a class="brand" href="index.html"><span class="first">后台管理系统</span></a>
                <ul class="nav">
                    <li class="active"><a href="javascript:void(0);">首页</a></li>
                    <li><a href="javascript:void(0);">系统管理</a></li>
                    <li><a href="javascript:void(0);">权限管理</a></li>
                </ul>
            </div>
        </div>
    </div>
    <!-- 左 -->
    <div class="sidebar-nav">
        <a href="#error-menu" class="nav-header collapsed" data-toggle="collapse"><i class="icon-exclamation-sign"></i>权限管理</a>
        <ul id="error-menu" class="nav nav-list collapse">
            <li><a href="<?php echo url('admin/manager/index'); ?>">管理员列表</a></li>
            <li><a href="<?php echo url('admin/manager/create'); ?>">管理员新增</a></li>
            <li><a href="javascript:void(0);">角色管理</a></li>
            <li><a href="javascript:void(0);">权限管理</a></li>
        </ul>
        <a href="#accounts-menu" class="nav-header" data-toggle="collapse"><i class="icon-exclamation-sign"></i>商品管理</a>
        <ul id="accounts-menu" class="nav nav-list collapse in">
            <li><a href="<?php echo url('admin/goods/index'); ?>">商品列表</a></li>
            <li><a href="<?php echo url('admin/goods/create'); ?>">商品新增</a></li>
            <li><a href="javascript:void(0);">商品类型</a></li>
            <li><a href="javascript:void(0);">商品分类</a></li>
        </ul>
        <a href="#accounts-menu" class="nav-header" data-toggle="collapse"><i class="icon-exclamation-sign"></i>订单管理</a>
        <ul id="accounts-menu" class="nav nav-list collapse">
            <li><a href="javascript:void(0);">订单列表</a></li>
            <li><a href="javascript:void(0);">订单新增</a></li>
        </ul>
        <a href="#accounts-menu" class="nav-header" data-toggle="collapse"><i class="icon-exclamation-sign"></i>会员管理</a>
        <ul id="accounts-menu" class="nav nav-list collapse">
            <li><a href="javascript:void(0);">用户列表</a></li>
            <li><a href="javascript:void(0);">用户新增</a></li>
        </ul>
        <a href="#dashboard-menu" class="nav-header" data-toggle="collapse"><i class="icon-exclamation-sign"></i>系统管理</a>
        <ul id="dashboard-menu" class="nav nav-list collapse">
            <li><a href="javascript:void(0);">密码修改</a></li>
        </ul>
    </div>
    <script type="text/javascript" charset="utf-8" src="/plugins/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="/plugins/ueditor/ueditor.all.min.js">
</script>
<!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
<!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
<script type="text/javascript" charset="utf-8" src="/plugins/ueditor/lang/zh-cn/zh-cn.js"></script>
<!-- 右 -->
<div class="content">
    <div class="header">
        <h1 class="page-title">商品新增</h1>
    </div>

    <!-- add form -->
    <form action="<?php echo url('admin/goods/save'); ?>" method="post" id="tab" enctype="multipart/form-data">
        <?php echo token(); ?>
        <ul class="nav nav-tabs">
            <li role="presentation" class="active"><a href="#basic" data-toggle="tab">基本信息</a></li>
            <li role="presentation"><a href="#desc" data-toggle="tab">商品描述</a></li>
            <li role="presentation"><a href="#attr" data-toggle="tab">商品属性</a></li>
            <li role="presentation"><a href="#pics" data-toggle="tab">商品相册</a></li>
        </ul>
        <div class="tab-content">
            <div class="tab-pane fade in active" id="basic">
                <div class="well">
                    <label>商品名称：</label>
                    <input type="text" name="goods_name" value="" class="input-xlarge">
                    <label>商品价格：</label>
                    <input type="text" name="goods_price" value="" class="input-xlarge">
                    <label>商品数量：</label>
                    <input type="text" name="goods_number" value="" class="input-xlarge">
                    <label>商品logo：</label>
                    <input type="file" name="logo" value="" class="input-xlarge">
                    <label>商品分类：</label>
                    <select name="" class="input-xlarge">
                            <option value="">请选择一级分类</option>
                        </select>
                    <select name="" class="input-xlarge">
                            <option value="">请选择二级分类</option>
                        </select>
                    <select name="cate_id" class="input-xlarge">
                            <option value="">请选择三级分类</option>
                        </select>
                </div>
            </div>
            <div class="tab-pane fade in" id="desc">
                <div class="well">
                    <label>商品简介：</label>
                    <textarea id="editor" name="goods_introduce" class="input-xlarge" style="width:1024px;height:500px" ;></textarea>
                </div>
            </div>
            <div class=" tab-pane fade in id=" attr ">
                    <div class="well ">
                        <label>商品类型：</label>
                        <select name=" " class="input-xlarge ">
                            <option value="2 ">电脑</option>
                            <option value="1 ">手机</option>
                        </select>
                        <div>
                            <label>商品品牌：</label>
                            <input type="text " name=" " value=" " class="input-xlarge ">
                            <label>商品型号：</label>
                            <input type="text " name=" " value=" " class="input-xlarge ">
                            <label>商品重量：</label>
                            <input type="text " name=" " value=" " class="input-xlarge ">
                        </div>
                    </div>
                </div>
                <div class="tab-pane fade in " id="pics ">
                    <div class="well ">
                        <div>[<a href="javascript:void(0); " class="add ">+</a>]商品图片：<input type="file " name="goods_pics[] " value=" " class="input-xlarge "></div>
                    </div>
                </div>
                <button class="btn btn-primary " type="submit ">保存</button>
            </div>
    </form>
    <!-- footer -->
    <footer>
        <hr>
        <p>© 2017 <a href="javascript:void(0); " target="_blank ">ADMIN</a></p>
    </footer>
    </div>
    <script type="text/javascript ">
         UE.getEditor('editor');

        $(function() {
            $('.add').click(function() {
                var add_div = '<div>[<a href="javascript:void(0); " class="sub ">-</a>]商品图片：<input type="file " name="goods_pics[] " value=" " class="input-xlarge "></div>';
                $(this).parent().after(add_div);
            });
            $('.sub').live('click', function() {
                $(this).parent().remove();
            });
        });
    </script>
</body>

</html>